package com.zyit.mapper;

import com.zyit.model.Registry;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface RegistryMapper {

    @Insert("insert into registry (patient_id, schedule_id, user_id, department_id, room_id, status, fee, pay_fee, medicare_fee,is_medicare, consultation_time)" +
            "              values (#{patientId},#{scheduleId},#{userId},#{departmentId},#{roomId},1,50.00,#{payFee},#{medicareFee},#{isMedicare},null)"
    )
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    int add(Registry registry);
}
